<%@ page language="java" pageEncoding="utf-8" %>
<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta charset="UTF-8">
    <title>${_systemName}</title>
    <style>
        * {
            margin: 0;
            padding: 0
        }

        html, body {
            height: 100%;
            width: 100%;
            overflow: hidden;
        }

        .bg {
            position: fixed;
            width: 100%;
            height: 100%;
            background: url('${_staticPath}/img/bg.png') 100% 100%;
            overflow: hidden;
            background-position: 50% 50%;
            background-repeat: no-repeat;
        }

        .img {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -35%);
            z-index: 999;
            overflow: hidden;
            text-align: center;
            height: 500px;
            width: 800px;
        }

        .img img {
         /*   border: 19px solid #A56D57;*/
            margin-top: 40px;

        }

        .img p {
            font-size: 20px;
            font-weight: 600;
        }

        .impowerBox .qrcode {
            width: 250px;
        }

        .footer {
            position: fixed;
            bottom: 0;
            background-color: #A56D57;
            line-height: 40px;
            height: 40px;
            width: 100%;
            text-align: center;
            color: #ffffff;
        }

        .loginLeft {
            width: 340px;
            height: 400px;
            background: url('${_staticPath}/img/tupian.png') 100% 100%;
            background-size: cover;
            background-repeat: no-repeat;
            float: left;
        }

    </style>
</head>
<body>
<%--<div class="footer">请使用企业微信扫描二维码登录“菠萝在线综合管理系统”</div>--%>
<div class="img">
    <%--    <p>欢迎登陆菠萝在线后台系统</p>--%>
    <div class="loginLeft"></div>
    <div id="loginRight" class="loginRight ">
        <p style="margin-top: 35px;font-size: 10px">菠萝在线后台系统<img src="${_staticPath}/img/2.0.png"></p>
        <div style="width: 100%;height:60%;margin: 0 auto;text-align:center">
            <div id="login" class="login" style=""></div>
        </div>

    </div>


</div>
<div class="bg"></div>

<script src='https://rescdn.qqmail.com/node/ww/wwopenmng/js/sso/wwLogin-1.0.0.js'></script>
<style>
    .loginRight {
        width: 340px;
        height: 400px;
        background-color: white;
        background-size: cover;
        background-repeat: no-repeat;
        float: left;
    }

</style>
<!--[if !IE]> -->
<script type="text/javascript">
    window.jQuery || document.write("<script src='${_staticPath}/assets/js/jquery.js'>" + "<" + "/script>");
</script>

<script type="text/javascript">
    $(function () {
        $.get('${_path}/login/qiyeWxLoginData', {"backUrl": "${frontBackUrl}"}, function (data) {
            if (data.code == 1) {
                data.data.href = "data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDE2MHB4O30NCi5pbXBvd2VyQm94IC50aXRsZSB7ZGlzcGxheTogbm9uZTt9DQouaW1wb3dlckJveCAuaW5mbyB7d2lkdGg6IDE2MHB4O30NCi5zdGF0dXNfaWNvbiB7ZGlzcGxheTogbm9uZX0NCi5pbXBvd2VyQm94IC5zdGF0dXMge3RleHQtYWxpZ246IGNlbnRlcjt9";
                window.WwLogin(data.data);
            }
        })
    });
</script>
</body>
</html>